// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// import 'babel-polyfill'
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.prototype.$bus = new Vue()

Vue.prototype.$goback = function () {
  window.history.length > 1 ? this.$router.go(-1) : this.$router.push('/')
}
window.$login = false
var BaaS = window.BaaS
BaaS.init('e50532c6051f2e5a5313')

Vue.use(ElementUI)

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router
}).$mount('#app')